/*
	Copyright (c) 2007, ANYwebcam.com Pty Ltd. All rights reserved.

	The software in this package is published under the terms of the BSD style 
	license, a copy of which has been included with this distribution in the 
	license.txt file.
*/
package com.anywebcam.di.component
{
	import com.anywebcam.di.*;
	import com.anywebcam.di.component.*;

	import flexunit.framework.TestCase;
	import flexunit.framework.TestSuite;

	public class ConstructorInjectionComponentTest extends TestCase
	{
		public static function suite():TestSuite
		{
			var ts:TestSuite = new TestSuite();

			var tests:Array = 
			[
				// ['propertyOne', 'propertyTwo']
				'shouldResolveSimpleStringParameterAndRetrieveTypeInstanceFromContainer',

				// key:String, value:String
				// eg: [{'propertyOne': 'string-key'}]
				'shouldResolveParameterWithStringKeyAndStringValueToTypeInstanceFromContainer',
				
				// key:String, value:Function
				// eg: [{'propertyTwo': function( container:DIContainer, component:DIComponent, parameter:* ):Object { return { hello : 'world' }; } }]
				'shouldResolveParameterWithStringKeyAndFunctionValueToFunctionReturnValue',
				
				// key:String, value:Class
				// eg: [{'propertyThree': ClassWithSetters}]
				'shouldResolveParameterWithStringKeyAndClassValueToTypeInstanceFromContainer'
			];

			tests.forEach( function( methodName:String, index:int, array:Array ):void
			{
				ts.addTest( new ConstructorInjectionComponentTest( methodName ) );
			});

			return ts;
		}

		public function ConstructorInjectionComponentTest( method:String )
		{
			super( method );
		}
		
		public function shouldFailAsNotYetTested():void
		{
			fail( 'tests not yet implemented' );
		}		
		
		public function shouldResolveSimpleStringParameterAndRetrieveTypeInstanceFromContainer():void
		{
			fail( 'test not yet implemented' );
		}
		
		public function shouldResolveParameterWithStringKeyAndStringValueToTypeInstanceFromContainer():void
		{
			fail( 'test not yet implemented' );
		}
		
		public function shouldResolveParameterWithStringKeyAndFunctionValueToFunctionReturnValue():void
		{
			fail( 'test not yet implemented' );
		}
		
		public function shouldResolveParameterWithStringKeyAndClassValueToTypeInstanceFromContainer():void
		{
			fail( 'test not yet implemented' );
		}
	}
}